babl-fish-reference: implement floating point version of reference path
authorØyvind Kolås <pippin@gimp.org>
Wed, 29 Aug 2018 13:28:41 +0000 (15:28 +0200)
committerØyvind Kolås <pippin@gimp.org>
Wed, 29 Aug 2018 13:28:41 +0000 (15:28 +0200)
commite3832662ea7d593720f100d222e85e4c20a00547
tree0207ece54d5f8c2aff9ee07f04544cdad88bae90
parent4c9df8c1d34e78c95d2a97be2e07319fae8980aa
babl-fish-reference: implement floating point version of reference path

This relies on conversions, linear or planar, being registered to and from
RGBA float, similar to the already existing reference conversions in double.

To enable use of it set the environment variable BABL_REFERENCE_FLOAT to any
value, babl will crash if the above requirement is not met for a requested
conversion - permitting adding it - fallback code could be added that implements
it using the double versions when missing - but not having a full coverage at
least for the commonly used formats defeats the purpose.
babl/babl-fish-reference.c